/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.model;

import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.support.GenericEntity;

/**
 * 日志表
 */
@Entity
@Table(name = "ls_daily_log")
public class DailyLog implements GenericEntity<Long> {

	private static final long serialVersionUID = -6283770620054650424L;

	/** 主键 */
	private Long id;

	/** 项目Id */
	private Long projectId;

	/** 项目模块Id */
	private Long moduleId;

	/** 发生的那天 */
	private Date happenDate;

	/** 今天的日志描述 */
	private String describe;

	/** 今天的计划 */
	private String plan;

	/** 实际消耗工时 */
	private Double actualHours;

	/** 发生的人 */
	private String userName;

	/** 0：初始化， 1： 已经提交， 2： 项目经理已经审核 */
	private Long status;

	/** 建立时间 */
	private Date createTime;

	public DailyLog() {
	}

	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "DAILY_LOG_SEQ")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "project_id")
	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	@Column(name = "mdle_id")
	public Long getModuleId() {
		return moduleId;
	}

	public void setModuleId(Long moudleId) {
		this.moduleId = moudleId;
	}

	@Column(name = "happen_date")
	public Date getHappenDate() {
		return happenDate;
	}

	public void setHappenDate(Date happenDate) {
		this.happenDate = happenDate;
	}

	@Column(name = "describe")
	public String getDescribe() {
		return describe;
	}

	public void setDescribe(String describe) {
		this.describe = describe;
	}

	@Column(name = "plan")
	public String getPlan() {
		return plan;
	}

	public void setPlan(String plan) {
		this.plan = plan;
	}

	@Column(name = "actual_hours")
	public Double getActualHours() {
		return actualHours;
	}

	public void setActualHours(Double actualHours) {
		this.actualHours = actualHours;
	}

	@Column(name = "status")
	public Long getStatus() {
		return status;
	}

	public void setStatus(Long status) {
		this.status = status;
	}

	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "user_name")
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
